﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using CNFM_CROCODILE_LOGO.Services.Interfaces;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;

namespace CNFM_CROCODILE_LOGO_WebApi.Controllers
{
    [Route("api/[controller]")]
    [ApiController]
    [ApiExplorerSettings(IgnoreApi = true)]
    public class BasicController : ControllerBase
    {
        private IBasicServices _pro;

        public BasicController(IBasicServices pro)
        {
            this._pro = pro;
        }

        /// <summary>
        /// 地区列表
        /// </summary>
        /// <param name="code"></param>
        /// <returns></returns>
        [HttpGet]
        [Route("GetAreaAll")]
        public IActionResult GetAreaAll(string code)
        {
            var ret = _pro.GetAreaAll(code);
            return Ok(ret);
        }
    }
}